projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0806615
)
mpc83xx: USB: fix: access of ehci struct elements
author
Vivek Mahajan
<
[email protected]
>
Wed, 24 Jun 2009 04:38:40 +0000
(10:08 +0530)
committer
Remy Bohmer
<
[email protected]
>
Thu, 9 Jul 2009 19:33:15 +0000
(21:33 +0200)
It fixes the access to the 'ehci' struct elements for mpc83xx which
should have been taken care of in
4ef01010aa4799c759d75e67007fdd3a38c88c8a
Sorry about that.
Signed-off-by: Vivek Mahajan <
[email protected]
>
Signed-off-by: Remy Bohmer <
[email protected]
>
cpu/mpc83xx/cpu_init.c
patch
|
blob
|
history
diff --git
a/cpu/mpc83xx/cpu_init.c
b/cpu/mpc83xx/cpu_init.c
index 414565cb65bb94e477ae1798851a1b154f8cb68d..03b6c86349cc795299dbeb174e9e97e53943ab4e 100644
(file)
--- a/
cpu/mpc83xx/cpu_init.c
+++ b/
cpu/mpc83xx/cpu_init.c
@@
-303,11
+303,11
@@
void cpu_init_f (volatile immap_t * im)
struct usb_ehci *ehci = (struct usb_ehci *)CONFIG_SYS_MPC8xxx_USB_ADDR;
/* Configure interface. */
- setbits_be32(
(void *)
ehci->control, REFSEL_16MHZ | UTMI_PHY_EN);
+ setbits_be32(
&
ehci->control, REFSEL_16MHZ | UTMI_PHY_EN);
/* Wait for clock to stabilize */
do {
- temp = in_be32(
(void *)
ehci->control);
+ temp = in_be32(
&
ehci->control);
udelay(1000);
} while (!(temp & PHY_CLK_VALID));
#endif